package ar.edu.sovietrussia.customcomponents.searchbook;

import org.apache.wicket.model.IModel;

import ar.edu.sovietrussia.customcomponents.bookviews.BookModel;
import dtos.BookInfoDTO;

/**
 * TODO: description
 */
public class SearchBookPanelModel implements IModel<BookModel> {

    private static final long serialVersionUID = 1L;

    private BookModel model;

    public BookModel getModel() {
        return this.model;
    }

    public void setModel(final BookModel model) {
        this.model = model;
    }

    public SearchBookPanelModel(final BookModel bookModel) {
        this.model = bookModel;
    }

    public SearchBookPanelModel() {
        this.model = new BookModel(new BookInfoDTO());

    }

    @Override
    public void detach() {
        // hola pmd
    }

    @Override
    public BookModel getObject() {
        return this.model;
    }

    @Override
    public void setObject(final BookModel object) {
        this.model = object;
    }

    public BookModel getBookModel() {
        return this.model;
    }
}
